using JTZY.Model.Order;

namespace JTZY.Model.Order
{
    /// <summary>
    /// 发货单表
    /// </summary>
    [SugarTable("corecmsbilldelivery")]
    public class Corecmsbilldelivery
    {
        /// <summary>
        /// 发货单序列 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public string DeliveryId { get; set; }

        /// <summary>
        /// 订单号 
        /// </summary>
        public string OrderId { get; set; }

        /// <summary>
        /// 物流公司编码 
        /// </summary>
        public string LogiCode { get; set; }

        /// <summary>
        /// 物流单号 
        /// </summary>
        public string LogiNo { get; set; }

        /// <summary>
        /// 第三方对接物流编码 
        /// </summary>
        public string ThirdPartylogiCode { get; set; }

        /// <summary>
        /// 快递物流信息 
        /// </summary>
        public string LogiInformation { get; set; }

        /// <summary>
        /// 快递是否不更新 
        /// </summary>
        public bool LogiStatus { get; set; }

        /// <summary>
        /// 收货地区ID 
        /// </summary>
        public int ShipAreaId { get; set; }

        /// <summary>
        /// 收货详细地址 
        /// </summary>
        public string ShipAddress { get; set; }

        /// <summary>
        /// 收货人姓名 
        /// </summary>
        public string ShipName { get; set; }

        /// <summary>
        /// 收货电话 
        /// </summary>
        public string ShipMobile { get; set; }

        /// <summary>
        /// 状态 
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 备注 
        /// </summary>
        public string Memo { get; set; }

        /// <summary>
        /// 确认收货时间 
        /// </summary>
        public DateTime? ConfirmTime { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// StoreId 
        /// </summary>
        public int? StoreId { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(Corecmsbilldeliveryitem.OrderId), nameof(DeliveryId))] //自定义关系映射
        public List<Corecmsbilldeliveryitem> CorecmsbilldeliveryitemNav { get; set; }
    }
}